package com.xin.service;

import com.xin.pojo.Book;
import com.xin.pojo.Page;

import java.util.List;

public interface BookService {
    public void addBook(Book book);
    public void deleteBookById(Integer id);
    public void update(Book book);
    public Book queryBookById(Integer id);
    public List<Book> queryBook();
    public Page<Book> page(int pageNo,int pageSize);
    public Page<Book> page2(int pageNo,int pageSize);

    public Page pageByPrice(int pageNo,int pageSize,int min,int max);

}
